simulation routine

[计] 模拟程序